package org.i1510.base.po;

import org.i1510.base.utils.cusAnnotation.Column;
import org.i1510.base.utils.cusAnnotation.Table;

import com.fasterxml.jackson.annotation.JsonInclude;
/**
 * @author rambo
 * 权限树
 */
//@Entity
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "BASE_PO")
public class BasePo implements java.io.Serializable {
	private String docId;
	private String docSubject;
	private String docStatus;
	private String docCreator;
	private String docCreateTime;
	private String docLastor;
	private String docLastTime;
	private String descs;	 
	
	public BasePo() {
		super();
	}
		
//	@Id
	@Column(name = "doc_id", nullable = false, length = 36)
	public String getDocId() {
		return docId;
	}

	public void setDocId(String docId) {
		this.docId = docId;
	}

	@Column(name = "doc_subject",  length = 100)
	public String getDocSubject() {
		return docSubject;
	}

	public void setDocSubject(String docSubject) {
		this.docSubject = docSubject;
	}

	@Column(name = "doc_status",  length = 2)
	public String getDocStatus() {
		return docStatus;
	}

	public void setDocStatus(String docStatus) {
		this.docStatus = docStatus;
	}

	@Column(name = "doc_creator",  length = 36)
	public String getDocCreator() {
		return docCreator;
	}

	public void setDocCreator(String docCreator) {
		this.docCreator = docCreator;
	}

	@Column(name = "doc_create_time",  length = 19) 
	public String getDocCreateTime() {
		return docCreateTime;
	}

	public void setDocCreateTime(String docCreateTime) {
		this.docCreateTime = docCreateTime;
	}

	@Column(name = "doc_lastor",  length = 36)
	public String getDocLastor() {
		return docLastor;
	}

	public void setDocLastor(String docLastor) {
		this.docLastor = docLastor;
	}

	@Column(name = "doc_last_time",  length = 19)
	public String getDocLastTime() {
		return docLastTime;
	}

	public void setDocLastTime(String docLastTime) {
		this.docLastTime = docLastTime;
	}

	

//	@Column(name = "descs",  length = 36)
//	public String getDescs() {
//		return descs;
//	}
//
//	public void setDescs(String descs) {
//		this.descs = descs;
//	}

	/**
	 * @param args
	 * 获取注解的值
	 */
//	public static void main(String[] args) {
//		Class<BasePo> c = BasePo.class;
//		System.out.println(c.getAnnotation(Table.class).name());
//		Field[] fs=c.getDeclaredFields();
//        Method[] ms = c.getDeclaredMethods(); 
//        for(Field f:fs){
//			System.out.println(f.getName());
//			System.out.println(f.isAccessible());
//			System.out.println(f.getAnnotation(Column.class));
//		}
//		for(Method m:ms){
//			System.out.println(m.getName());
//			System.out.println(m.isAccessible());
//			if(null != m.getAnnotation(Column.class)){
//				System.out.println(m.getAnnotation(Column.class).name());
//			}
//		}
//	}
	
}
